// cover some element-ui styles
.el-form-item__content {
  line-height: 31px;
}

.el-form-item__label {
  line-height: 32px;
}

.el-button--primary:hover:not(.el-button-group button) {
  background-color: #1890ff;
  border-color: #1890ff;
  box-shadow: 0 2px 5px 1px rgb(24 144 255 / 60%);
}

.el-button--small:not(.cell button) {
  font-size: 14px;
  padding: 8px 15px;
}

.cell .el-button--text {
  padding: 0 0;
}

.el-input__inner {
  font-size: 14px;

  &:hover {
    border-color: #1890ff;
  }
}

.el-dialog__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  .el-dialog {
    max-height: 90vh;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;

    .el-dialog__header {
      border-bottom: 1px solid #DCDFE6;
      height: 50px;
      padding: 0 30px 0 30px;

      .el-dialog__title {
        line-height: 50px;
        font-size: 16px;
      }

      .el-dialog__headerbtn {
        line-height: 16px;
        padding: 7px 7px;
        top: 10px;
        border-radius: 3px;

        &:hover {
          background-color: #ecf5ff;
        }
      }
    }

    .el-dialog__body {
      padding: 20px 30px 14px 30px;
      overflow: auto;

      .el-form-item__label {
        height: 22px;
        line-height: 22px;
        padding: 0 0;
        margin-bottom: 8px;
      }

      .el-form-item {
        margin-bottom: 16px;
      }

      .el-input__suffix-inner {
        .el-input__icon {
          font-size: 16px;
        }
      }
    }

    .el-dialog__footer {
      padding: 12px 30px 12px 30px;
      border-top: 1px solid #DCDFE6;
    }
  }
}

.el-select:hover .el-input__inner {
  border-color: #1890ff;
}

.el-textarea__inner:hover {
  border-color: #1890ff;
}

.el-pagination__total {
  float: left;
}

// ----------------------------------------------------

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}
